-- GENERATED SPELL FOR [Glacion] --


function spell0_24019(pUnit, Event) --@Frost Breath,n/a--
pUnit:FullCastSpellOnTarget(43562,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24019', 9000, 1)
end

function spell1_24019(pUnit, Event) --@Ice Blast,Self--
pUnit:FullCastSpellOnTarget(11264,pUnit)
pUnit:RegisterEvent('Sorts_24019', 10000, 1)
end

function Sorts_24019(pUnit, Event)
local choix_sorts_24019 = math.random(0, 1)
if choix_sorts_24019 == 0 then
pUnit:RegisterEvent('spell0_24019', 1, 1)
end
if choix_sorts_24019 == 1 then
pUnit:RegisterEvent('spell1_24019', 1, 1)
end
end

function mob24019_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24019', math.random(1500, 3000), 1)
end

function mob24019_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24019_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24019_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24019, 1, 'mob24019_Action')
RegisterUnitEvent(24019, 2, 'mob24019_Leave')
RegisterUnitEvent(24019, 3, 'mob24019_Kill')
RegisterUnitEvent(24019, 4, 'mob24019_Die')
